package cn.rongdao.jrkabao.ui.remind.treeviewbinder;

import android.view.View;

import cn.rongdao.jrkabao.treeview.base.BaseNodeViewBinder;
import cn.rongdao.jrkabao.treeview.base.BaseNodeViewFactory;


/**
 * Created by zxy on 17/4/23
 */

public class MyNodeViewFactory extends BaseNodeViewFactory {

    public static final int FIRST_LEVEL = 0;
    public static final int SECOND_LEVEL = 1;

    @Override
    public BaseNodeViewBinder getNodeViewBinder(View view, int level) {
        switch (level) {
            case FIRST_LEVEL:
                return new FirstLevelNodeViewBinder(view);
            case SECOND_LEVEL:
                return new SecondLevelNodeViewBinder(view);
            default:
                return null;
        }
    }
}
